﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminSalesItemReport.aspx.cs" Inherits="eStore.UI.SalesItemReportPage" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <mp:CornerRounderTop ID="ctop1" runat="server" EnableViewState="false" />
    <asp:Panel ID="pnl1" runat="server" CssClass="panelwrapper admin">
        <div class="modulecontent">
            <div class="breadcrumbs">
                <asp:HyperLink ID="lnkCommerceReports" runat="server" NavigateUrl="~/eStore/SalesSummary.aspx" />&nbsp;&gt;
                <asp:HyperLink ID="lnkModuleReport" runat="server" NavigateUrl="~/eStore/SalesByModule.aspx" />&nbsp;&gt;
                <asp:HyperLink ID="lnkThisPage" runat="server" CssClass="selectedcrumb" />
            </div>
            <fieldset>
                <legend>
                    <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                </legend>
                <mp:mojoGridView ID="grdItems" runat="server" AllowPaging="false" AllowSorting="false"
                    AutoGenerateColumns="false" EnableTheming="false" SkinID="plain">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <a href='<%# SiteRoot + "/eStore/AdminSalesByItem.aspx?i=" + Eval("ItemGuid") %>'>
                                    <%# Eval("ItemName")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <%# Eval("UnitsSold")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <%# string.Format(currencyCulture, "{0:c}", Convert.ToDecimal(Eval("Revenue"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </mp:mojoGridView>
                <div class="modulepager">
                    <portal:mojoCutePager ID="pgrItems" runat="server" />
                </div>
                <div class="cleared">
                </div>
            </fieldset>
        </div>
        <div class="cleared">
        </div>
    </asp:Panel>
    <mp:CornerRounderBottom ID="cbottom1" runat="server" EnableViewState="false" />
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
